package com.minotauro.i18n.demo;

import java.awt.GridLayout;
import java.util.Calendar;

import javax.swing.JFrame;
import javax.swing.JLabel;

public class PanelTest extends JFrame{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JLabel firstName;
	private JLabel lastName;
	private JLabel date;
	private JLabel bankBalance;

	private JLabel lblFirstName;
	private JLabel lblLastName;
	private JLabel lblDate;
	private JLabel lblBankBalance;

	public void init() {

		setVisible(true);
		setSize(350, 200);
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		
		Calendar calendar = Calendar.getInstance();
		
//		firstName = new JLabel("Nombre");
//		firstName = new JLabel(resourceBundle.getResource("name"));
		firstName = new JLabel(_I18NI18NDemo.firstName());
		lastName = new JLabel(_I18NI18NDemo.lastName());
		date = new JLabel(_I18NI18NDemo.date());
		bankBalance = new JLabel(_I18NI18NDemo.bankBalance());

		lblFirstName = new JLabel("Karly Paola");
		lblLastName = new JLabel("Toloza Gonzalez");
		lblDate = new JLabel(_DateDateDemo.formatDateLong(calendar));
		lblBankBalance = new JLabel(_NumbNumbDemo.formatDefault2NumberFormat(15400.72));
		

		setLayout(new GridLayout(4, 2));

		add(firstName);
		add(lblFirstName);
		add(lastName);
		add(lblLastName);
		add(date);
		add(lblDate);
		add(bankBalance);
		add(lblBankBalance);
	}

	public PanelTest() {

		init();
	}

}
